package com.brsya.movie.contract;


import com.brsya.base.base.BaseView;
import com.brsya.base.bean.BaseListBean;
import com.brsya.base.bean.SearchMovieBean;

import java.util.List;
import java.util.Map;

import io.reactivex.rxjava3.core.Observable;

/**
 * Created by Brsya
 * CreateDate: 2022/5/10  20:29
 * Description:
 * 直搜搜索
 */
public interface SearchMovieContract {
    interface Model{
        /**
         * 根据名称搜索影视列表
         */
        Observable<BaseListBean<SearchMovieBean>> getMovieListByName(Map<String, Object> par);
    }

    interface View extends BaseView {
        /**
         * 显示列表
         */
        void showMovieList(List<SearchMovieBean> movieBeans);
    }

    interface Presenter{
        /**
         * 按标签获取影视列表
         *
         * @param name       名称搜索
         */
        void getMovieList(String name);
    }
}
